﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_XuLyAjaxHienThiThuocTinh.aspx.cs" Inherits="ChucNang_Admin_Admin_XuLyAjaxHienThiThuocTinh" %>

<%  
    int soluong = int.Parse(Request["q"]);
    string ret = "";//"<table >";
    DataDSTableAdapters.THUOCTINHTableAdapter ttAdap = new DataDSTableAdapters.THUOCTINHTableAdapter();
    DataDS.THUOCTINHDataTable ttTable = ttAdap.GetData();
    string select = "";
    for (int i = 0; i < ttTable.Rows.Count; i++ )
    {
        select+="<option value='"+ttTable[i].Id+"'>";
        select+= ttTable[i].TenThuocTinh;
        select+="</option>";
    }
    select += "</select>";
        
    
    for (int i = 0; i < soluong; i++)
    {
        
        ret += "<div style='padding-top:5px;'>Thuộc tính:  ";
        ret += "<select name='select_" + i + "'>";
        ret += select;
        ret+="</div>";

    }
    //ret += "</table>";
    Response.Write(ret);
    %>